package com.silver.weibo.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.silver.weibo.entity.Blogs;
import com.silver.weibo.entity.dto.BlogListDTO;
import com.silver.weibo.entity.vo.BlogDetailVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;


@Repository
public interface BlogMapper extends BaseMapper<Blogs> {

    BlogDetailVO selectOneById(@Param("id") Integer id);

    IPage<BlogDetailVO> selectAllByActive(IPage<BlogDetailVO> page, @Param("blogDTO")BlogListDTO blogListDTO);

    // blogger详情页查询该blogger的博客

}
